package com.nativetalk;

import com.nativetalk.bean.giving.TsNtLiveGivingList;
import com.nativetalk.common.util.MemcachedKey;
import com.nativetalk.common.util.MemcachedUtils;

import java.util.Map;

/**
 * Created by lizhun on 16/6/19.
 */
public class test {
    public static  void main(String[] args) {
//        Params params = new Params();
//        params.setFunctionName("Light");
//        Map<String, String> map = new HashMap<>();
//        long time  = System.currentTimeMillis()/1000;
//        map.put("token", "test");
//        map.put("version", "6");
//        map.put("client_type", "1");
//        map.put("Timestamp", time + "");
//        map.put("SignInfo", (MD5.code(time+"nativetalk")));
//        map.put("user_type", "1");
//        params.setMustParams(map);
//        Map<String, Object> pa = new HashMap<>();
//        pa.put("tea_id",2);
//        pa.put("live_cou_his_id",12);
//        pa.put("giv_id",12);
//        params.setParams(pa);
//        System.out.println(JSONObject.fromObject(params).toString());
//        RetInfo retInfo = new RetInfo();
//
//        retInfo.setMark("1");
//        retInfo.setTip("余额不足");
//        System.out.println(BeanToJson.RetInfoToJson(retInfo));
//        Map<String, TsNtLiveGivingList> tsNtLiveGivingListMap = (Map<String, TsNtLiveGivingList>) MemcachedUtils.get(MemcachedKey.tsNtLiveGivingListsMap);
//        System.out.println(tsNtLiveGivingListMap.get("1").getGiv_us_name());
//        System.out.println(MemcachedUtils.get(MemcachedKey.freeCoursePicture));
//        IosStudentGetui.pay("外教君","!2","7287584bd514fdc1fa715dca88437074b3ec03054f48cddd004fdeba99258d4c");

        //                 339deda4-1af5-4292-8b80-4e8f51251c69
        Map<String, TsNtLiveGivingList> map =(Map<String, TsNtLiveGivingList>) MemcachedUtils.get(MemcachedKey.tsNtLiveGivingListsMap);

            System.out.println(map);
    }
}
